/*
 * @Author: szx
 * @Date: 2021-11-12 12:39:35
 * @LastEditTime: 2021-11-12 12:43:13
 * @Description:
 * @FilePath: \leetcode\300-399\374\374.cpp
 */
#include <iostream>

class Solution {
   public:
    int guessNumber(int n) {
        int l = 1, r = n;
        while (l < r) {
            int m = l+(r-l) / 2;
            if (guess(m) == 0) {
                return m;
            }
            if (guess(m) < 0) {
                r = m;
            } else {
                l = m + 1;
            }
        }
        return l;
    }
    int guess(int num){
        return 0;
    }
};

using namespace std;
int main() { return 0; }